package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

@Data
@TableName("msslyy_category")
public class MsslyyCategory extends Model<MsslyyCategory> {
    /**
      * 主键
      */
    @ApiModelProperty(value = "ID")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Long id;



    /**
      * 图书分类名称 
      */
    @ApiModelProperty(value = "图书分类名称")
    private String categoryName;

    /**
      * 状态 
      */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
      * 逻辑删除 
      */
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    /**
      * 乐观锁 
      */
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    /**
      * 创建时间 
      */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
      * 修改时间 
      */
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}